﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Web.UI;
using System.Web.UI.WebControls;
using fsw.Common;

namespace fsw.Web
{
    public partial class Right : Web.UI.ManagePage
    {
        protected string _totalproject = string.Empty;//项目总数
        protected List<Model.Project> List = new List<Model.Project>();
        protected string _ClientBrowserVersions = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            BLL.Project bll = new BLL.Project();
            List = bll.GetList("1=1" + UserPossLevel(), " OrderNo desc");
            _totalproject = List.Count.ToString();
            _ClientBrowserVersions = GetClientBrowserVersions();
        }
        private string GetClientBrowserVersions()
        {
            string browserVersions = string.Empty;
            HttpBrowserCapabilities hbc = HttpContext.Current.Request.Browser;
            string browserType = hbc.Browser.ToString(); //获取浏览器类型
            string browserVersion = hbc.Version.ToString(); //获取版本号
            browserVersions = browserType + browserVersion;
            return browserVersions;
        }
    }
}